package com.example.springbootdemo.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

@Primary
@Configuration
@ConfigurationProperties(prefix = "jjxmz")
public class ApplicationProperties {
    /**
     * 基础配置
     */
    private static String open;
    /**
     * swagger配置
     */
    private static Boolean swaggerEnable;
    private static String swaggerGroupName;
    private static String swaggerUrl;
    private static String swaggerTitle;
    private static String swaggerDescription;
    private static String swaggerVersion;

    /**
     * 短信配置
     */
    private static String isTest;
    private static String restServer;

    public static String getOpen() {
        return open;
    }

    public void setOpen(String open) {
        ApplicationProperties.open = open;
    }

    public static Boolean getSwaggerEnable() {
        return swaggerEnable;
    }

    public void setSwaggerEnable(Boolean swaggerEnable) {
        ApplicationProperties.swaggerEnable = swaggerEnable;
    }

    public static String getSwaggerGroupName() {
        return swaggerGroupName;
    }

    public void setSwaggerGroupName(String swaggerGroupName) {
        ApplicationProperties.swaggerGroupName = swaggerGroupName;
    }

    public static String getSwaggerUrl() {
        return swaggerUrl;
    }

    public void setSwaggerUrl(String swaggerUrl) {
        ApplicationProperties.swaggerUrl = swaggerUrl;
    }

    public static String getSwaggerTitle() {
        return swaggerTitle;
    }

    public void setSwaggerTitle(String swaggerTitle) {
        ApplicationProperties.swaggerTitle = swaggerTitle;
    }

    public static String getSwaggerDescription() {
        return swaggerDescription;
    }

    public void setSwaggerDescription(String swaggerDescription) {
        ApplicationProperties.swaggerDescription = swaggerDescription;
    }

    public static String getSwaggerVersion() {
        return swaggerVersion;
    }

    public void setSwaggerVersion(String swaggerVersion) {
        ApplicationProperties.swaggerVersion = swaggerVersion;
    }

    public static String getIsTest() {
        return isTest;
    }

    public void setIsTest(String isTest) {
        ApplicationProperties.isTest = isTest;
    }

    public static String getRestServer() {
        return restServer;
    }

    public void setRestServer(String restServer) {
        ApplicationProperties.restServer = restServer;
    }
}
